﻿using System;
using System.ComponentModel.Composition;
using NetBay.Core.BusinessEntities.Workflow;
using Rio.Framework.Localisation;

namespace Rio.Framework.Pages.Workflow.Actions
{
    [InheritedExport(typeof(WorkflowButtonAction))]
    public class ReadWorkflowButtonAction : WorkflowButtonAction
    {
        public ReadWorkflowButtonAction()
            : base()
        {
            Text = Resx.GetLabel(ResxWorkflow.WorkflowAction_Read);
            Image = new Uri("/Rio.Framework.Pages;component/Assets/Images/workflow_read.png", UriKind.Relative);
            UiTypeAction = WorkflowTypeAction.Read;
        }
    }

    public class ReadAllWorkflowButtonAction : ReadWorkflowButtonAction
    {
        public ReadAllWorkflowButtonAction()
            : base()
        {
            Text = Resx.GetLabel(ResxWorkflow.WorkflowAction_ReadAll);
            IsGlobalAction = true;
        }
    }
}
